package com.gdupt.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gdupt.entity.DrawPlan;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 制定计划 制定计划 Mapper 接口
 * </p>
 *
 * @author gdupt
 * @since 2018-11-21
 */
public interface DrawPlanMapper extends BaseMapper<DrawPlan> {
    public boolean editPlan(DrawPlan drawPlan);
    public boolean editPlanResult(DrawPlan drawPlan);
    public DrawPlan findPlanById(Integer id);
    public boolean deletePlan(Integer id);
    public boolean deletePlanBySId(Integer id);
    public List<DrawPlan> findAllPlanById(Page page, @Param("id") Integer id);
    public boolean savePlan(DrawPlan drawPlan);
    public List<DrawPlan> searchPlan(String search);
    public boolean failPlan(Integer id);
    public boolean sucessPlan(Integer id);
}
